<template>
  <a-config-provider :locale="locale">
    <router-view />
  </a-config-provider>
</template>
<script lang="ts">
import { defineComponent, provide, ref } from "vue";
import { Tabs } from "@/store/inject";
import zhCN from "ant-design-vue/es/locale/zh_CN";
export default defineComponent({
  setup() {
    const fiexdMenu = {
      title: "首页",
      routeName: "home",
      icon: "home",
      key: "home",
    };
    provide(
      Tabs.tabsStateSymbol,
      ref([fiexdMenu, { ...fiexdMenu, key: "home1", active: true }, fiexdMenu, fiexdMenu])
    );
    provide(Tabs.activeTabSymbol, ref({ ...fiexdMenu }));

    return {
      locale: zhCN,
    };
  },
});
</script>
